package com.itheima.system.service.impl;

import com.itheima.common.entity.PageResult;
import com.itheima.system.mapper.CityMapper;
import com.itheima.system.pojo.City;
import com.itheima.system.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/7 21:44
 */
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    private CityMapper cityMapper;


    /**
     * 查询所有城市
     */
    @Override
    public List<City> findAllCity() {
        return  cityMapper.findAllCity();
    }
}
